from flask import Flask, jsonify
from werkzeug.middleware.proxy_fix import ProxyFix


def create_app():
    app = Flask(__name__)
    app.wsgi_app = ProxyFix(app.wsgi_app, x_proto=1, x_host=1)

    @app.route('/', methods=['GET'])
    def single():
        res = 'hello'
        return jsonify(res)
    
    return app
